#include<AT89X52.h>
#define RCLK  P1_5
#define SDATA P1_6
#define SCLK  P1_7
void SendData(unsigned char Xdata,unsigned char Ydata)
{
unsigned char i=0;
RCLK=0;
for(i=0;i<8;i++)
{
SDATA=Xdata & 0x01;
SCLK=1;
SCLK=0;
Xdata=Xdata>>1;
}
for(i=0;i<8;i++)
{
SDATA=Ydata & 0x01;
SCLK=1;
SCLK=0;
Ydata=Ydata>>1;
}
RCLK=1;
}
void delay()
{
unsigned int j;
for(j=3000;j>0;j--)
{
}
}
void function7(void)
{
while(1)
{
SendData(0x9c,0x80);
delay();
SendData(0x0a,0x40);
delay();
SendData(0x00,0x20);
delay();
SendData(0x00,0x10);
delay();
SendData(0x81,0x08);
delay();
SendData(0xc3,0x04);
delay();
SendData(0xe7,0x02);
delay();
SendData(0xff,0x01);
delay();
}
}